# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=corecollector
pkgver=0.3.5
pkgrel=1
pkgdesc="A coredump collector written in D"
url="https://github.com/Cogitri/corecollector"
arch="aarch64 x86_64" # Missing gdc on other architectures
license="GPL-3.0-or-later"
depends="gdb musl-dbg"
makedepends="meson gcc-gdc scdoc"
install="$pkgname.pre-install $pkgname.pre-upgrade"
subpackages="$pkgname-doc"
source="https://github.com/Cogitri/corecollector/archive/v$pkgver/corecollector-$pkgver.tar.gz"

build() {
	abuild-meson . output
	ninja -v -C output
}

check() {
	meson test --no-rebuild -v -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
63277a9a61a10a0e8c112422bbadbd3ecd1727676a034f47b644ceb85808149beca962c25c11cc1ec73b14f25827d40bde638e5c8f1205f49bc51b4063e44e89  corecollector-0.3.5.tar.gz
"
